Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

removed logback-xml from config to use NiFi default logback.xml #98

Merged
merged 6 commits into from
Nov 9, 2020

Conversation

hobe
Copy link
Contributor

@hobe hobe commented Oct 21, 2020

Is your feature request related to a problem? Please describe.
We'd like to customize the logging and therefore we want to mount a custom logback.xml file. This can be achieved by adding a custom configmap (via values.configmaps):

eg.:
`
configmaps:

  • name: nifi-logback-config
    keys:
    • logback.xml
      mountPath: /opt/nifi/nifi-current/conf
      `

Unfortunately there is already a default logback.xml mounted directly within the helm chart which also differs from the default logback.xml which is shipped with nifi (1.12.1)

Describe the solution you'd like
Removed the config/logback.xml file and the volume and volumeMounts from the statefulset for the logback.xml to get the default logback.xml which is shipped with NiFi image itself. Then it is possible to overwrite it with a custom file (via configmap in the values)

Describe alternatives you've considered
Other mount options or postStart scripts are not possible because the file is already mounted to conf/logback.xml and is readonly. It is also not possible to use another filepath to logback.xml via nifi.properties

@novakov-alexey-zz
Copy link
Contributor

looking forward for this change 👍
it will satisfy #68 issue as well

@hobe
Copy link
Contributor Author

hobe commented Nov 4, 2020

@alexnuttinck did you already have time to look into this PR?

@banzo banzo requested a review from alexnuttinck November 4, 2020 10:46
@banzo
Copy link
Contributor

banzo commented Nov 4, 2020

@hobe he is away this week

@alexnuttinck alexnuttinck changed the base branch from master to develop November 9, 2020 07:13
@alexnuttinck
Copy link
Contributor

lgtm, sorry for the delay.

@alexnuttinck alexnuttinck merged commit 762dccc into cetic:develop Nov 9, 2020
@hobe hobe deleted the feature/default-logback-xml branch November 17, 2020 12:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants